package com.zhuozhou.jdyc.main.base.adapter;

import android.content.Context;

import com.zhuozhou.jdyc.R;
import com.zhuozhou.jdyc.base.BaseRecyclerViewAdapter;
import com.zhuozhou.jdyc.base.BaseViewHolder;
import com.zhuozhou.jdyc.bean.PopupWindowBean;
import com.zhuozhou.jdyc.databinding.OptionTextViewBinding;

/**
 * Created by 方舟 on 2019/10/31.
 * describe：底部选择菜单
 */
public class MenuListAdapter extends BaseRecyclerViewAdapter<PopupWindowBean,OptionTextViewBinding> {

    public MenuListAdapter(Context mContext) {
        super(mContext);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.option_text_view;
    }

    @Override
    public void onBindHolder(BaseViewHolder<OptionTextViewBinding> viewHolder, int pos) {
        viewHolder.getBinding().setItem(mList.get(pos));
    }
}
